package com.happok.onlineclass.usermanagement.setting.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.happok.onlineclass.usermanagement.setting.dto.FunctionClassifyEnum;
import com.happok.onlineclass.usermanagement.setting.po.FunctionSettingPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * 功能说明
 *
 * @author : chenac
 * @version : v1.0
 * @date : 2021/10/9 14:27
 * @updateUser : chenac
 * @updateTime : 2021/10/9 14:27
 * @updateRemark : 无
 * @since : Springboot 2.5.2
 */
@Mapper
public interface FunctionSettingDAO extends BaseMapper<FunctionSettingPO> {
    @Update("update function_setting set open = #{open} where function_classify = #{functionClassify}")
    void functionEnable(@Param("functionClassify") FunctionClassifyEnum functionClassify, @Param("open") Boolean open);
}